<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
#set($currpage = "index")
#parse("/linkandscript.html")

<title>论坛控</title>
</head>
<div id="headerdiv">
    <table width="1000px" border="0" class="center">
      <tr>
        <td width="200px" id="logotd"><span id="logo">论坛控</span></td>
        <td></td>
        <td width="500px" id="slogantd" style="text-align:right">
        <div style="margin-bottom:10px">
        #if($showsettingbtn == "yes")
            <a class="btn btn-primary" id="settingbtn">设置</a>
        #end    
        </div>
        <div>
        	<span id="slogan">论坛浏览新体验</span>
        </div>
        
        </td>
      </tr>
    </table>
</div>

<div id="forumsdiv" >
    <table width="1000px" border="0" class="center">
    
    #foreach($groupitem in $groupslist)
    <!--group-->
      <tr class="grouptr">
        <td>
        	<div style="color:#999;padding-top:10px;">
            	<h3>$groupitem.name ( $groupitem.getForumNum() )<h3>
            </div>
        </td>
        <td class="alignright" style="padding-top:10px;">
        #if($showbatchbtn == "yes")
        	<a id="scanallbtn" class="batchscan btn btn-info">扫描下载全部</a>
            <a id="viewallimagebtn" class="batchscan btn btn-info">查看全部</a>
        #end    
        </td>
      </tr>
      <!--forums-->
      
      <tr>
		<td colspan="2">
        #foreach($forumitem in $groupitem.getForumsInThisGroup() )
        
        <div class="span">
          <div class="tile">
            <h4 class="tile-title"><span>$forumitem.getId()</span>  $forumitem.name</h4>
            <div class="forumsummary">
               <table width="90%" border="0">
                  <tr>
                    <td class="alignright">帖子数</td>
                    <td class="alignright">$forumitem.summary.newpostcount/</td>
                    <td>$forumitem.summary.totalpostcount</td>
                  </tr>
                  <tr>
                    <td class="alignright">图片数</td>
                    <td class="alignright">$forumitem.summary.newimagecount/</td>
                    <td>$forumitem.summary.totalimagecount</td>
                  </tr>
                  <tr>
                    <td class="alignright">最后扫描</td>
                    <td class="alignright" colspan="2">$!forumitem.summary.lastupdatetime</td>
                  </tr>
                </table>
            </div>
           
            <a class="btn btn-info scanbtn" forum="$forumitem.getId()">扫描下载</a>
          </div><!--end of tile-->
        </div>
        #end
                
                
        </td>
        
      </tr>
      #end
    </table>
</div>



<body>
</body>



<script language="javascript">
var uid=$uid;
var sessionid=$sessionid;
var actionseq=$actionseq;

$(function(){

	onload();
	$(".btn").click(function(){
		ltkonclick($(this));
	});
	
	
	
	
	$("#viewallimagebtn").click(function(){
		window.location.href="/hezi/picwall?forum=allforum&category=avcover&limit=1000&windowwidth="+$(window).width();			
	});
	
	
	
	$(".scanbtn").click(function(){
		var theforum = $(this).attr("forum");
		window.location.href="/hezi/scan?forum="+theforum+"&windowwidth="+$(window).width();	
		
//		window.open ("/hezi/scan?forum="+theforum+"&windowwidth="+$(window).width(),theforum,
	//		"top=0,left=0,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no") 
		
		
	});
	
	
	
		

	doimagehover();
	
	

	

		
})








function doimagehover(){
    $(".grouptr").hover(function(){
                       //console.log($(this).attr("id") + " in");
					   $(".batchscan").show();
                 },
				 function(){
                       //console.log($(this).attr("id") + " out");
					   $(".batchscan").hide();
                 }
    );	
  
}


</script>


<style>



#headerdiv{
	
	background: #eceff1;
	width:100%; 
	//border:#eceff1 solid 1px
}

#headerdiv td{
	vertical-align:bottom;
}



.batchscan{
	display:none;
}


#logotd{
	color:#FFF;
	background-color:#1abc9c;
	padding:4px;
	padding-bottom:10px;
	text-align:center;
}

#logo{
	font-size:60px;
	font:bold;
}

#slogantd{
	color:#1abc9c;
	//padding:20px;
	padding-bottom:10px;
	
}
#slogan{
	font-size:26px;
}

#operationtd{
	text-align:right;
	padding-bottom:10px;
}


td {
	text-align:left;
	
}
td.noseprator {
	vertical-align:top;
	padding-right:10px;
	padding-left:10px;
}

td.seprator{
	border-left:#CCC solid 2px;
	
}

td.group{
	border-bottom:#CCC solid 2px;
	
}

.alignright{
	text-align:right;
}

h4{
	font-weight: 700;
}






td div.span{
	margin-left:8px;
	margin-right:8px;
	
}
.tile{
	//margin-top:4px;
	margin-bottom:20px;
	width:210px;
	padding-top:8px;
	padding-bottom:4px;
	padding-left:10px;
	padding-right:10px;
	border:#1abc9c dotted 1px;
}

.tile-title{
	border-bottom:#FFF dotted 2px;
	padding-bottom:10px;
	color:#063;
}

.forumsummary{
	padding-top:8px;
	padding-bottom:8px;
	color:#1abc9c;
}


</style>
</html>
